package iO;

import java.io.*;

/**
 * @Author: Miyako
 * @Date: 2024-07-16-16:58
 * @Description:
 */
public class ObjectOutputStreamDemo02 {//序列化
    public static void main(String[] args) throws IOException {
        File file = new File("14.png");
        ObjectOutputStream oot = new ObjectOutputStream(
                new BufferedOutputStream(new FileOutputStream("14.txt")));
        oot.writeObject(file);
        oot.close();
    }
}

